home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gekikoh Dennoh Club 1
/
Gekikoh Dennoh Club Vol. 1 (Japan).7z
/
Gekikoh Dennoh Club Vol. 1 (Japan) (Track 1).bin
/
kowin
/
archive
/
sys
/
kowin14d.lzh
/
smpl
/
mglib
/
graphic.c
next >
Wrap
C/C++ Source or Header
|
1995-02-17
|
581b
|
30 lines
/* MgLIB ぐらふぃっくがでたぞ */
#include <corlib.h>
int WindowHeapSize= 4096;
EventExec( wp, info )
WindowID wp;
EventInfo *info;
{
if( info->option == EventRedraw ){
int i;
DrawBuf dbuf[30];
DrawSetClear( dbuf, ColorGraphic );
DrawSetGraphicClear( dbuf+1, 0 ); /* 黒 */
for( i= 0 ; i< 16 ; i++ )
DrawSetGraphicLine( dbuf+2+i, i*2, i*2,
79-i*2, 79-i*2, i, OptionBox );
WindowDraw( wp, dbuf, 16+2 );
return TRUE;
}
return FALSE;
}
WindowMain()
{
MgWindowDefaultOpen( 10, 10, 80, 80, "graph", MgGraphic16, EventExec );
}